package com.xy.smartsms.adapter;

import android.app.Activity;

import com.example.messageutil.iface.IMenuProcessor;
import com.example.messageutil.iface.ISmartSmsHolder;
import com.xy.smartsms.helper.SmartSmsMenuHelper;
import com.xy.smartsms.helper.SmartSmsMenuOptions;

/**
 * Created by admin on 2017/8/31 0031.
 */

public class XyMenuProcessor implements IMenuProcessor {
    private String mPhoneNumber = null;
    SmartSmsMenuHelper mMenuHelper = null;

    public XyMenuProcessor() {

    }

    @Override
    public void setupMenu(Activity context, ISmartSmsHolder holder, String phoneNumber) {
        mPhoneNumber = phoneNumber;
        SmartSmsMenuOptions options = new SmartSmsMenuOptions.Builder()
                .setStubId(holder.getMenuStubId())
                .setChangeId(holder.getMenuChangeId())
                .setEditId(holder.getMenuChangeId())
                .setHandler(null)
                .build();
        mMenuHelper = new SmartSmsMenuHelper(context, mPhoneNumber, options);
    }
}
